3.12.25 \(\int (A+B x) (d+e x)^3 (a+c x^2)^2 \, dx\)

Optimal. Leaf size=206 \[ \frac {2 c (d+e x)^7 \left (a B e^2-2 A c d e+5 B c d^2\right )}{7 e^6}+\frac {(d+e x)^5 \left (a e^2+c d^2\right ) \left (a B e^2-4 A c d e+5 B c d^2\right )}{5 e^6}-\frac {(d+e x)^4 \left (a e^2+c d^2\right )^2 (B d-A e)}{4 e^6}-\frac {c (d+e x)^6 \left (-a A e^3+3 a B d e^2-3 A c d^2 e+5 B c d^3\right )}{3 e^6}-\frac {c^2 (d+e x)^8 (5 B d-A e)}{8 e^6}+\frac {B c^2 (d+e x)^9}{9 e^6} \]

________________________________________________________________________________________

Rubi [A]  time = 0.22, antiderivative size = 206, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {772} \begin {gather*} \frac {2 c (d+e x)^7 \left (a B e^2-2 A c d e+5 B c d^2\right )}{7 e^6}-\frac {c (d+e x)^6 \left (-a A e^3+3 a B d e^2-3 A c d^2 e+5 B c d^3\right )}{3 e^6}+\frac {(d+e x)^5 \left (a e^2+c d^2\right ) \left (a B e^2-4 A c d e+5 B c d^2\right )}{5 e^6}-\frac {(d+e x)^4 \left (a e^2+c d^2\right )^2 (B d-A e)}{4 e^6}-\frac {c^2 (d+e x)^8 (5 B d-A e)}{8 e^6}+\frac {B c^2 (d+e x)^9}{9 e^6} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*x)*(d + e*x)^3*(a + c*x^2)^2,x]

[Out]

-((B*d - A*e)*(c*d^2 + a*e^2)^2*(d + e*x)^4)/(4*e^6) + ((c*d^2 + a*e^2)*(5*B*c*d^2 - 4*A*c*d*e + a*B*e^2)*(d +
 e*x)^5)/(5*e^6) - (c*(5*B*c*d^3 - 3*A*c*d^2*e + 3*a*B*d*e^2 - a*A*e^3)*(d + e*x)^6)/(3*e^6) + (2*c*(5*B*c*d^2
 - 2*A*c*d*e + a*B*e^2)*(d + e*x)^7)/(7*e^6) - (c^2*(5*B*d - A*e)*(d + e*x)^8)/(8*e^6) + (B*c^2*(d + e*x)^9)/(
9*e^6)

Rule 772

Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegr
and[(d + e*x)^m*(f + g*x)*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, m}, x] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int (A+B x) (d+e x)^3 \left (a+c x^2\right )^2 \, dx &=\int \left (\frac {(-B d+A e) \left (c d^2+a e^2\right )^2 (d+e x)^3}{e^5}+\frac {\left (c d^2+a e^2\right ) \left (5 B c d^2-4 A c d e+a B e^2\right ) (d+e x)^4}{e^5}+\frac {2 c \left (-5 B c d^3+3 A c d^2 e-3 a B d e^2+a A e^3\right ) (d+e x)^5}{e^5}-\frac {2 c \left (-5 B c d^2+2 A c d e-a B e^2\right ) (d+e x)^6}{e^5}+\frac {c^2 (-5 B d+A e) (d+e x)^7}{e^5}+\frac {B c^2 (d+e x)^8}{e^5}\right ) \, dx\\ &=-\frac {(B d-A e) \left (c d^2+a e^2\right )^2 (d+e x)^4}{4 e^6}+\frac {\left (c d^2+a e^2\right ) \left (5 B c d^2-4 A c d e+a B e^2\right ) (d+e x)^5}{5 e^6}-\frac {c \left (5 B c d^3-3 A c d^2 e+3 a B d e^2-a A e^3\right ) (d+e x)^6}{3 e^6}+\frac {2 c \left (5 B c d^2-2 A c d e+a B e^2\right ) (d+e x)^7}{7 e^6}-\frac {c^2 (5 B d-A e) (d+e x)^8}{8 e^6}+\frac {B c^2 (d+e x)^9}{9 e^6}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 244, normalized size = 1.18 \begin {gather*} \frac {1}{5} x^5 \left (a^2 B e^3+6 a A c d e^2+6 a B c d^2 e+A c^2 d^3\right )+\frac {1}{2} a^2 d^2 x^2 (3 A e+B d)+a^2 A d^3 x+\frac {1}{7} c e x^7 \left (2 a B e^2+3 A c d e+3 B c d^2\right )+\frac {1}{3} a d x^3 \left (3 a A e^2+3 a B d e+2 A c d^2\right )+\frac {1}{6} c x^6 \left (2 a A e^3+6 a B d e^2+3 A c d^2 e+B c d^3\right )+\frac {1}{4} a x^4 \left (a A e^3+3 a B d e^2+6 A c d^2 e+2 B c d^3\right )+\frac {1}{8} c^2 e^2 x^8 (A e+3 B d)+\frac {1}{9} B c^2 e^3 x^9 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)*(d + e*x)^3*(a + c*x^2)^2,x]

[Out]

a^2*A*d^3*x + (a^2*d^2*(B*d + 3*A*e)*x^2)/2 + (a*d*(2*A*c*d^2 + 3*a*B*d*e + 3*a*A*e^2)*x^3)/3 + (a*(2*B*c*d^3
+ 6*A*c*d^2*e + 3*a*B*d*e^2 + a*A*e^3)*x^4)/4 + ((A*c^2*d^3 + 6*a*B*c*d^2*e + 6*a*A*c*d*e^2 + a^2*B*e^3)*x^5)/
5 + (c*(B*c*d^3 + 3*A*c*d^2*e + 6*a*B*d*e^2 + 2*a*A*e^3)*x^6)/6 + (c*e*(3*B*c*d^2 + 3*A*c*d*e + 2*a*B*e^2)*x^7
)/7 + (c^2*e^2*(3*B*d + A*e)*x^8)/8 + (B*c^2*e^3*x^9)/9

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (A+B x) (d+e x)^3 \left (a+c x^2\right )^2 \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(A + B*x)*(d + e*x)^3*(a + c*x^2)^2,x]

[Out]

IntegrateAlgebraic[(A + B*x)*(d + e*x)^3*(a + c*x^2)^2, x]

________________________________________________________________________________________

fricas [A]  time = 0.36, size = 287, normalized size = 1.39 \begin {gather*} \frac {1}{9} x^{9} e^{3} c^{2} B + \frac {3}{8} x^{8} e^{2} d c^{2} B + \frac {1}{8} x^{8} e^{3} c^{2} A + \frac {3}{7} x^{7} e d^{2} c^{2} B + \frac {2}{7} x^{7} e^{3} c a B + \frac {3}{7} x^{7} e^{2} d c^{2} A + \frac {1}{6} x^{6} d^{3} c^{2} B + x^{6} e^{2} d c a B + \frac {1}{2} x^{6} e d^{2} c^{2} A + \frac {1}{3} x^{6} e^{3} c a A + \frac {6}{5} x^{5} e d^{2} c a B + \frac {1}{5} x^{5} e^{3} a^{2} B + \frac {1}{5} x^{5} d^{3} c^{2} A + \frac {6}{5} x^{5} e^{2} d c a A + \frac {1}{2} x^{4} d^{3} c a B + \frac {3}{4} x^{4} e^{2} d a^{2} B + \frac {3}{2} x^{4} e d^{2} c a A + \frac {1}{4} x^{4} e^{3} a^{2} A + x^{3} e d^{2} a^{2} B + \frac {2}{3} x^{3} d^{3} c a A + x^{3} e^{2} d a^{2} A + \frac {1}{2} x^{2} d^{3} a^{2} B + \frac {3}{2} x^{2} e d^{2} a^{2} A + x d^{3} a^{2} A \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^3*(c*x^2+a)^2,x, algorithm="fricas")

[Out]

1/9*x^9*e^3*c^2*B + 3/8*x^8*e^2*d*c^2*B + 1/8*x^8*e^3*c^2*A + 3/7*x^7*e*d^2*c^2*B + 2/7*x^7*e^3*c*a*B + 3/7*x^
7*e^2*d*c^2*A + 1/6*x^6*d^3*c^2*B + x^6*e^2*d*c*a*B + 1/2*x^6*e*d^2*c^2*A + 1/3*x^6*e^3*c*a*A + 6/5*x^5*e*d^2*
c*a*B + 1/5*x^5*e^3*a^2*B + 1/5*x^5*d^3*c^2*A + 6/5*x^5*e^2*d*c*a*A + 1/2*x^4*d^3*c*a*B + 3/4*x^4*e^2*d*a^2*B
+ 3/2*x^4*e*d^2*c*a*A + 1/4*x^4*e^3*a^2*A + x^3*e*d^2*a^2*B + 2/3*x^3*d^3*c*a*A + x^3*e^2*d*a^2*A + 1/2*x^2*d^
3*a^2*B + 3/2*x^2*e*d^2*a^2*A + x*d^3*a^2*A

________________________________________________________________________________________

giac [A]  time = 0.19, size = 281, normalized size = 1.36 \begin {gather*} \frac {1}{9} \, B c^{2} x^{9} e^{3} + \frac {3}{8} \, B c^{2} d x^{8} e^{2} + \frac {3}{7} \, B c^{2} d^{2} x^{7} e + \frac {1}{6} \, B c^{2} d^{3} x^{6} + \frac {1}{8} \, A c^{2} x^{8} e^{3} + \frac {3}{7} \, A c^{2} d x^{7} e^{2} + \frac {1}{2} \, A c^{2} d^{2} x^{6} e + \frac {1}{5} \, A c^{2} d^{3} x^{5} + \frac {2}{7} \, B a c x^{7} e^{3} + B a c d x^{6} e^{2} + \frac {6}{5} \, B a c d^{2} x^{5} e + \frac {1}{2} \, B a c d^{3} x^{4} + \frac {1}{3} \, A a c x^{6} e^{3} + \frac {6}{5} \, A a c d x^{5} e^{2} + \frac {3}{2} \, A a c d^{2} x^{4} e + \frac {2}{3} \, A a c d^{3} x^{3} + \frac {1}{5} \, B a^{2} x^{5} e^{3} + \frac {3}{4} \, B a^{2} d x^{4} e^{2} + B a^{2} d^{2} x^{3} e + \frac {1}{2} \, B a^{2} d^{3} x^{2} + \frac {1}{4} \, A a^{2} x^{4} e^{3} + A a^{2} d x^{3} e^{2} + \frac {3}{2} \, A a^{2} d^{2} x^{2} e + A a^{2} d^{3} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^3*(c*x^2+a)^2,x, algorithm="giac")

[Out]

1/9*B*c^2*x^9*e^3 + 3/8*B*c^2*d*x^8*e^2 + 3/7*B*c^2*d^2*x^7*e + 1/6*B*c^2*d^3*x^6 + 1/8*A*c^2*x^8*e^3 + 3/7*A*
c^2*d*x^7*e^2 + 1/2*A*c^2*d^2*x^6*e + 1/5*A*c^2*d^3*x^5 + 2/7*B*a*c*x^7*e^3 + B*a*c*d*x^6*e^2 + 6/5*B*a*c*d^2*
x^5*e + 1/2*B*a*c*d^3*x^4 + 1/3*A*a*c*x^6*e^3 + 6/5*A*a*c*d*x^5*e^2 + 3/2*A*a*c*d^2*x^4*e + 2/3*A*a*c*d^3*x^3
+ 1/5*B*a^2*x^5*e^3 + 3/4*B*a^2*d*x^4*e^2 + B*a^2*d^2*x^3*e + 1/2*B*a^2*d^3*x^2 + 1/4*A*a^2*x^4*e^3 + A*a^2*d*
x^3*e^2 + 3/2*A*a^2*d^2*x^2*e + A*a^2*d^3*x

________________________________________________________________________________________

maple [A]  time = 0.04, size = 252, normalized size = 1.22 \begin {gather*} \frac {B \,c^{2} e^{3} x^{9}}{9}+\frac {\left (A \,e^{3}+3 B d \,e^{2}\right ) c^{2} x^{8}}{8}+A \,a^{2} d^{3} x +\frac {\left (2 B a c \,e^{3}+\left (3 A d \,e^{2}+3 B \,d^{2} e \right ) c^{2}\right ) x^{7}}{7}+\frac {\left (2 \left (A \,e^{3}+3 B d \,e^{2}\right ) a c +\left (3 A \,d^{2} e +B \,d^{3}\right ) c^{2}\right ) x^{6}}{6}+\frac {\left (A \,c^{2} d^{3}+B \,a^{2} e^{3}+2 \left (3 A d \,e^{2}+3 B \,d^{2} e \right ) a c \right ) x^{5}}{5}+\frac {\left (3 A \,d^{2} e +B \,d^{3}\right ) a^{2} x^{2}}{2}+\frac {\left (\left (A \,e^{3}+3 B d \,e^{2}\right ) a^{2}+2 \left (3 A \,d^{2} e +B \,d^{3}\right ) a c \right ) x^{4}}{4}+\frac {\left (2 A a c \,d^{3}+\left (3 A d \,e^{2}+3 B \,d^{2} e \right ) a^{2}\right ) x^{3}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(e*x+d)^3*(c*x^2+a)^2,x)

[Out]

1/9*B*c^2*e^3*x^9+1/8*(A*e^3+3*B*d*e^2)*c^2*x^8+1/7*((3*A*d*e^2+3*B*d^2*e)*c^2+2*B*e^3*a*c)*x^7+1/6*((3*A*d^2*
e+B*d^3)*c^2+2*(A*e^3+3*B*d*e^2)*a*c)*x^6+1/5*(A*d^3*c^2+2*(3*A*d*e^2+3*B*d^2*e)*a*c+a^2*B*e^3)*x^5+1/4*(2*(3*
A*d^2*e+B*d^3)*a*c+(A*e^3+3*B*d*e^2)*a^2)*x^4+1/3*(2*A*d^3*a*c+(3*A*d*e^2+3*B*d^2*e)*a^2)*x^3+1/2*(3*A*d^2*e+B
*d^3)*a^2*x^2+A*d^3*a^2*x

________________________________________________________________________________________

maxima [A]  time = 0.63, size = 260, normalized size = 1.26 \begin {gather*} \frac {1}{9} \, B c^{2} e^{3} x^{9} + \frac {1}{8} \, {\left (3 \, B c^{2} d e^{2} + A c^{2} e^{3}\right )} x^{8} + \frac {1}{7} \, {\left (3 \, B c^{2} d^{2} e + 3 \, A c^{2} d e^{2} + 2 \, B a c e^{3}\right )} x^{7} + A a^{2} d^{3} x + \frac {1}{6} \, {\left (B c^{2} d^{3} + 3 \, A c^{2} d^{2} e + 6 \, B a c d e^{2} + 2 \, A a c e^{3}\right )} x^{6} + \frac {1}{5} \, {\left (A c^{2} d^{3} + 6 \, B a c d^{2} e + 6 \, A a c d e^{2} + B a^{2} e^{3}\right )} x^{5} + \frac {1}{4} \, {\left (2 \, B a c d^{3} + 6 \, A a c d^{2} e + 3 \, B a^{2} d e^{2} + A a^{2} e^{3}\right )} x^{4} + \frac {1}{3} \, {\left (2 \, A a c d^{3} + 3 \, B a^{2} d^{2} e + 3 \, A a^{2} d e^{2}\right )} x^{3} + \frac {1}{2} \, {\left (B a^{2} d^{3} + 3 \, A a^{2} d^{2} e\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^3*(c*x^2+a)^2,x, algorithm="maxima")

[Out]

1/9*B*c^2*e^3*x^9 + 1/8*(3*B*c^2*d*e^2 + A*c^2*e^3)*x^8 + 1/7*(3*B*c^2*d^2*e + 3*A*c^2*d*e^2 + 2*B*a*c*e^3)*x^
7 + A*a^2*d^3*x + 1/6*(B*c^2*d^3 + 3*A*c^2*d^2*e + 6*B*a*c*d*e^2 + 2*A*a*c*e^3)*x^6 + 1/5*(A*c^2*d^3 + 6*B*a*c
*d^2*e + 6*A*a*c*d*e^2 + B*a^2*e^3)*x^5 + 1/4*(2*B*a*c*d^3 + 6*A*a*c*d^2*e + 3*B*a^2*d*e^2 + A*a^2*e^3)*x^4 +
1/3*(2*A*a*c*d^3 + 3*B*a^2*d^2*e + 3*A*a^2*d*e^2)*x^3 + 1/2*(B*a^2*d^3 + 3*A*a^2*d^2*e)*x^2

________________________________________________________________________________________

mupad [B]  time = 1.75, size = 229, normalized size = 1.11 \begin {gather*} x^5\,\left (\frac {B\,a^2\,e^3}{5}+\frac {6\,B\,a\,c\,d^2\,e}{5}+\frac {6\,A\,a\,c\,d\,e^2}{5}+\frac {A\,c^2\,d^3}{5}\right )+\frac {a\,x^4\,\left (2\,B\,c\,d^3+6\,A\,c\,d^2\,e+3\,B\,a\,d\,e^2+A\,a\,e^3\right )}{4}+\frac {c\,x^6\,\left (B\,c\,d^3+3\,A\,c\,d^2\,e+6\,B\,a\,d\,e^2+2\,A\,a\,e^3\right )}{6}+\frac {a^2\,d^2\,x^2\,\left (3\,A\,e+B\,d\right )}{2}+\frac {c^2\,e^2\,x^8\,\left (A\,e+3\,B\,d\right )}{8}+A\,a^2\,d^3\,x+\frac {a\,d\,x^3\,\left (2\,A\,c\,d^2+3\,B\,a\,d\,e+3\,A\,a\,e^2\right )}{3}+\frac {c\,e\,x^7\,\left (3\,B\,c\,d^2+3\,A\,c\,d\,e+2\,B\,a\,e^2\right )}{7}+\frac {B\,c^2\,e^3\,x^9}{9} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)^2*(A + B*x)*(d + e*x)^3,x)

[Out]

x^5*((A*c^2*d^3)/5 + (B*a^2*e^3)/5 + (6*A*a*c*d*e^2)/5 + (6*B*a*c*d^2*e)/5) + (a*x^4*(A*a*e^3 + 2*B*c*d^3 + 3*
B*a*d*e^2 + 6*A*c*d^2*e))/4 + (c*x^6*(2*A*a*e^3 + B*c*d^3 + 6*B*a*d*e^2 + 3*A*c*d^2*e))/6 + (a^2*d^2*x^2*(3*A*
e + B*d))/2 + (c^2*e^2*x^8*(A*e + 3*B*d))/8 + A*a^2*d^3*x + (a*d*x^3*(3*A*a*e^2 + 2*A*c*d^2 + 3*B*a*d*e))/3 +
(c*e*x^7*(2*B*a*e^2 + 3*B*c*d^2 + 3*A*c*d*e))/7 + (B*c^2*e^3*x^9)/9

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 303, normalized size = 1.47 \begin {gather*} A a^{2} d^{3} x + \frac {B c^{2} e^{3} x^{9}}{9} + x^{8} \left (\frac {A c^{2} e^{3}}{8} + \frac {3 B c^{2} d e^{2}}{8}\right ) + x^{7} \left (\frac {3 A c^{2} d e^{2}}{7} + \frac {2 B a c e^{3}}{7} + \frac {3 B c^{2} d^{2} e}{7}\right ) + x^{6} \left (\frac {A a c e^{3}}{3} + \frac {A c^{2} d^{2} e}{2} + B a c d e^{2} + \frac {B c^{2} d^{3}}{6}\right ) + x^{5} \left (\frac {6 A a c d e^{2}}{5} + \frac {A c^{2} d^{3}}{5} + \frac {B a^{2} e^{3}}{5} + \frac {6 B a c d^{2} e}{5}\right ) + x^{4} \left (\frac {A a^{2} e^{3}}{4} + \frac {3 A a c d^{2} e}{2} + \frac {3 B a^{2} d e^{2}}{4} + \frac {B a c d^{3}}{2}\right ) + x^{3} \left (A a^{2} d e^{2} + \frac {2 A a c d^{3}}{3} + B a^{2} d^{2} e\right ) + x^{2} \left (\frac {3 A a^{2} d^{2} e}{2} + \frac {B a^{2} d^{3}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)**3*(c*x**2+a)**2,x)

[Out]

A*a**2*d**3*x + B*c**2*e**3*x**9/9 + x**8*(A*c**2*e**3/8 + 3*B*c**2*d*e**2/8) + x**7*(3*A*c**2*d*e**2/7 + 2*B*
a*c*e**3/7 + 3*B*c**2*d**2*e/7) + x**6*(A*a*c*e**3/3 + A*c**2*d**2*e/2 + B*a*c*d*e**2 + B*c**2*d**3/6) + x**5*
(6*A*a*c*d*e**2/5 + A*c**2*d**3/5 + B*a**2*e**3/5 + 6*B*a*c*d**2*e/5) + x**4*(A*a**2*e**3/4 + 3*A*a*c*d**2*e/2
 + 3*B*a**2*d*e**2/4 + B*a*c*d**3/2) + x**3*(A*a**2*d*e**2 + 2*A*a*c*d**3/3 + B*a**2*d**2*e) + x**2*(3*A*a**2*
d**2*e/2 + B*a**2*d**3/2)

________________________________________________________________________________________